package com.sprometheus.core.constants;

import lombok.Getter;

/**
 * 通知枚举类
 * @author 风白羽
 * @date 2024/9/5 下午4:59
 */
@Getter
public enum SPrometheusTitleEnum implements AbstractTitle {

    //该枚举类默认为开发群
    OTHER(100000, "其它", "系统异常"),

    //一下枚举类可以自行实现 AbstractTitle 进行扩展
    NACOS(100002, "服务监听", "服务下线请检查"),
    DATA_ERROR(100003, "数据错误", "数据状态不正确"),
    BUSINESS_ERROR(100003, "业务", "业务异常"),
    ;

    private String type;
    private Integer code;
    private String title;

    SPrometheusTitleEnum(Integer code, String type, String title) {
        this.type = type;
        this.code = code;
        this.title = title;
    }

    @Override
    public String type() {
        return type;
    }

    @Override
    public Integer code() {
        return code;
    }

    @Override
    public String title() {
        return title;
    }
}
